package com.room.search.web.rest;

import com.room.search.core.page.TableDataInfo;
import com.room.search.domain.RoomSupportingFacilities;
import com.room.search.service.RoomSupportingFacilitiesService;
import com.room.search.service.dto.RoomSupportingFacilitiesDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * REST controller for managing {@link com.room.search.domain.RoomSupportingFacilities}.
 */
@RestController
@RequestMapping("/api/supporting")
public class RoomSupportingFacilitiesResource {

    private final RoomSupportingFacilitiesService roomSupportingFacilitiesService;

    public RoomSupportingFacilitiesResource(RoomSupportingFacilitiesService roomSupportingFacilitiesService) {
        this.roomSupportingFacilitiesService = roomSupportingFacilitiesService;
    }
//    配套设施

    /**
     * 获取所有配套设施
     */
    @GetMapping("/all")
    public TableDataInfo getAllSupporting(RoomSupportingFacilitiesDTO dto) {
        return roomSupportingFacilitiesService.getAllSupporting(dto);
    }


}
